import 'dart:math';
import 'package:animal/utils/screen_util.dart';
import 'package:flutter/material.dart';
import 'package:flutter_spinkit/flutter_spinkit.dart';

//图片加载中显示样式
class ImageLoadingWidget extends StatelessWidget {
  const ImageLoadingWidget({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Stack(
      children: <Widget>[
        const SizedBox(),
        Container(
          decoration: BoxDecoration(
              borderRadius: BorderRadius.all(Radius.circular(ScreenUtil().L(15))), color: const Color(0xff415979)),
          child: const SpinKitFadingCircle(color: Colors.white, size: 24.0),
        )
      ],
    );
  }
}
